# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libvslvm-python
_pkgname=libvslvm
pkgver=20240504
pkgrel=3
pkgdesc='Library and tools to access the Linux Logical Volume Manager (LVM) volume system format.'
url='https://pypi.org/project/libvslvm-python/#files'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('ea5fc2308a695719c2f4b8a842ce4ca790b8cb6e30ff3a304c572ad6106a1badaa157aad3fe170a80affefd6d8d9a32219afacff9ccf9315551bfd8b71a3f1e2')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

